*** Table 2 ***

use Folketingsvalg_2022_foranalysis.dta

* Multi-level gsem: Table 2

gsem (ib3.partyvote_recoded_updated <- nytoeogyder i.climate i.tax_higincome i.immigration_threat i.eu_perceptions c.age##c.age gender personal_income i.profile_education_recoded unemployment i.region  M1[id]@1) [pw=weight], mlogit vce(cluster kommunenr)

outreg2 using individual_level_models_gsem.xls, replace

gsem (ib3.partyvote_recoded_updated <- c.nythovedstat i.climate i.tax_higincome i.immigration_threat i.eu_perceptions c.age##c.age gender personal_income i.profile_education_recoded unemployment personal_income_recoded  M1[id]@1) [pw=weight], mlogit vce(cluster kommunenr)

outreg2 using individual_level_models_gsem.xls, append

gsem (ib3.partyvote_recoded_updated <- saerligkompensation i.climate i.tax_higincome i.immigration_threat i.eu_perceptions c.age##c.age gender personal_income i.profile_education_recoded unemployment  M1[id]@1) [pw=weight], mlogit vce(cluster kommunenr)

outreg2 using individual_level_models_gsem.xls, append
